package com.zerox.service;

import com.zerox.entity.Supplier;
import com.zerox.entity.SysUser;

import java.util.List;

public interface SysUserService  {

    SysUser login(String username, String password);

    List<SysUser> list (Integer pageNo, Integer pageSize,String realName,Integer roleId);

    SysUser selectUser(Integer id);

    int add(SysUser sysUser);

    int userByAccount(String account);


    int delete(Integer id);


    int count(String realName,Integer roleId);

    int update(SysUser sysUser);





    List<Supplier> listSupplier(Integer pageNo,Integer pageSize,String supName);

    int count2(String supName);

    Supplier selectById(Integer id);

    int supplierAdd(Supplier supplier);

    int supplierDelete(Integer id);

    int supplierUpdate(Supplier supplier);

    Supplier selectBySupplierName(String supplierName);


}
